<!-- 通过 xmlns:th=”http://www.thymeleaf.org“ 命令空间，将静态页面转换为动态的视图，
需要进行动态处理的元素,将使用“th:”前缀。 -->
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>时光小说下载网-搜索</title>

    <link rel="stylesheet" href="webjars/bootstrap/3.4.1/css/bootstrap.css">
    <script src="webjars/jquery/3.6.0/jquery.js"></script>
    <script src="webjars/bootstrap/3.4.1/js/bootstrap.js"></script>

    <link rel="stylesheet" href="css/index.css">
    <link rel="stylesheet" href="css/nav.css">
    <link rel="stylesheet" href="css/head-logo.css">
    <link rel="stylesheet" href="css/searchNovelList.css">
</head>

<body>
<div class="container">
    <!--页眉-用户登录/注册-->
    <!--LOGO区域-->
    <div th:replace="head-logo :: head-logo"></div>

    <!--菜单导航区域-->
    <div th:replace="nav :: nav"></div>

    <!--小说主体内容区域-->
    <div class="content">
        <!--左侧-->

        <!-- 分类列表 -->
        <div class="categoryInfo-list">
            <div class="search-top">
                <h3>搜索含有<span style="color: red;"> [[  ${param.searchKey } ]] </span> 的相关记录约有 <span
                        style="color: red;">  [[ ${searchNovel.size() }  ]]   </span> 条</h3>
                <form class="form-inline" th:action="@{/seachNovle }" method="get">
                    <div class="form-group">
                        <input type="text" size="50" th:value="${param.searchKey } " class="form-control input-lg"
                               id="searchName" name="searchKey" placeholder="请输入书名或作者关键字">
                    </div>
                    <button type="submit" class="btn btn-primary btn-lg">搜索</button>
                </form>
            </div>


            <ul>

                <li th:each="novel,status : ${searchNovel } ">
                    <div class="top">
                        [[ ${status.index+1 } ]]、
                        <a th:href="@{/toNovelDetail(novelId=${novel.novelId} ) }"> [[ ${novel.title } ]] </a>
                        <span> 作者: [[ ${novel.authorName } ]] </span>
                    </div>
                    <div class="intro">

                        &nbsp;&nbsp;&nbsp;&nbsp;
                        [[ ${novel.content } ]]
                    </div>
                    <div class="bottom">
								<span style="color: black;">
                                     <span th:each=" cateItem : ${categoriesList }"
                                           th:if="${cateItem.cateId==novel.cateId}  ">【 [[${cateItem.cateName }]] 】</span>
								</span>
                        <span>
									<span>大小:</span>
									<span> [[ ${novel.nSize } ]] KB</span>
								</span>
                        <span>
									<span>最后更新时间:</span>
									<span> [[ ${novel.lastUpdate } ]] </span>
								</span>
                    </div>

                </li>

            </ul>
        </div>


        <!--右侧-->
        <div th:replace="rank::rank"></div>
    </div>


    <!--页尾 版本声明区域-->
    <div class="footer">
        <div class="my">关于我们 - 网址帮助 - 广告服务 - 版权声明 - 友情连接 - 网站地图</div>

        <div class="version-info">
            Copyright &copy; www.huhua.com All Rights Revered 页面版权所有 时光小说下载网 ICP备 187***64号
        </div>
    </div>
</div>

</body>
</html>